import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
Vue.prototype.checkLogin  = function(backpage, backtype){
	var SUID  = uni.getStorageSync('SUID');
	var SRAND = uni.getStorageSync('SRAND');
	var SNAME = uni.getStorageSync('SNAME');
	var SFACE = uni.getStorageSync('SFACE');
	if(SUID == '' || SRAND == '' || SFACE == ''){
		uni.redirectTo({
			url:"../login/login?backpage="+backpage+"&backtype="+backtype
		});
		return false;
	}
	return [SUID, SRAND, SNAME, SFACE];
}
var APITOKEN  = 'api2018';
Vue.prototype.apiServer    = 'http://10.3.10.180/index.php?token='+APITOKEN+'&c=';
Vue.prototype.staticServer = 'http://10.3.10.180/';
App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()


